﻿using CRedis.Third.Redis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CRedis.Third;
using System.Text;

namespace RedisClientTest
{
    public class MyRedisClient:RedisClient
    {
        public List<string> GetRandomItemFromSet(string setId,int count)
        {
            byte[][] results = base.SRandMember(setId, count);//.FromUtf8Bytes();
            List<string> resultList = new List<string>();
            for (int i = 0; i < results.Length; i++)
            {
                resultList.Add(results[i].FromUtf8Bytes());
            }
            return resultList;
        }
    }
}
